package design_patterns.Mediator;

import java.util.Date;

/**
 * @author chengz
 * @description 中介者模式 聊天室
 * @create 2020-08-18 11:36
 */
public class ChatRoom {

    public static void showMessage(User user,String message){
        System.out.println(new Date().toString()
            +"["+user.getUserName()+"] :"+message);
    }
}
